//
//  NSDictionary+nilHandle.m
//  DaFangYa
//
//  Created by lizhenqiang on 15/9/27.
//  Copyright © 2015年 HFKJ_LZQ. All rights reserved.
//

#import "NSDictionary+nilHandle.h"

@implementation NSDictionary (nilHandle)

+(id)objectOrNilForKey:(id)aKey fromDictionary:(NSDictionary *)dict
{
    id object = [dict objectForKey:aKey];
    return [object isEqual:[NSNull null]] ? nil : object;
}

@end
